package com.wanxi.education.mapper;

import com.wanxi.education.model.vo.advertandcertificate.CertificateAddVo;
import com.wanxi.education.model.vo.advertandcertificate.CertificateFindPageVo;
import com.wanxi.education.model.vo.advertandcertificate.CertificateFrontVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: yanguangqiong
 * @Description:
 * @Date: Created in 2021/9/28
 * @Version: 1.0
 */
@Repository
public interface CertificateMapper {
    List<CertificateAddVo> findPage(CertificateFindPageVo certificateFindPageVo);

    CertificateAddVo findById(Long certificateId);

    void updateStatus(Long certificateId);

    void delete(Long certificateId);

    void add(CertificateAddVo certificateAddVo);

    void update(CertificateAddVo certificateAddVo);

    CertificateFrontVo findByIdForFront(Long certificateId);

    Long findIdByCourse(Long courseId);
}
